:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  line-height: 1.6;
  font-weight: 400;

  /* 高端医疗配色方案 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --medical-blue: #4A90E2;
  --medical-cyan: #50E3C2;
  --medical-purple: #667eea;
  --medical-lavender: #B8A4E8;
  --accent-teal: #00D4AA;
  --accent-coral: #FF6B9D;
  
  /* 中性色 */
  --neutral-100: #FFFFFF;
  --neutral-200: #F7F9FC;
  --neutral-300: #EDF1F7;
  --neutral-400: #E4E9F2;
  --neutral-500: #C5CEE0;
  --neutral-600: #8F9BB3;
  --neutral-700: #2E3A59;
  --neutral-800: #222B45;
  
  /* 功能色 */
  --success: #00D68F;
  --warning: #FFAA00;
  --error: #FF3D71;
  --info: #0095FF;
  
  /* 阴影系统 */
  --shadow-soft: 0 2px 20px rgba(102, 126, 234, 0.08);
  --shadow-medium: 0 8px 40px rgba(102, 126, 234, 0.12);
  --shadow-strong: 0 16px 60px rgba(102, 126, 234, 0.18);
  --shadow-glow: 0 0 40px rgba(80, 227, 194, 0.3);

  color-scheme: light;
  color: var(--neutral-700);
  background: var(--neutral-200);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 50%, #e8ecf4 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(80, 227, 194, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

#root {
  min-height: 100vh;
}

/* 精致滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
  box-shadow: var(--shadow-soft);
}

/* 全局动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 高端玻璃态卡片 */
.medical-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.medical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.medical-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-6px);
  border-color: rgba(102, 126, 234, 0.3);
}

/* 医疗图标脉动效果 */
.medical-icon-pulse {
  animation: pulse 2s infinite;
}

/* 高端渐变文字 */
.medical-gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* 圆形统计卡片 */
.stat-card-circle {
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.stat-card-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  transition: all 0.6s ease;
}

.stat-card-circle:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: rgba(102, 126, 234, 0.4);
}

.stat-card-circle:hover::before {
  transform: scale(1.2) rotate(45deg);
}

/* 极简标题样式 */
.page-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--neutral-600);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 加载动画 */
.medical-loading {
  background: linear-gradient(
    90deg,
    var(--medical-bg-light) 0%,
    var(--medical-bg) 50%,
    var(--medical-bg-light) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* 高端按钮样式 */
.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  padding: 8px 24px !important;
  height: auto !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.ant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

.ant-btn-default {
  border-radius: 12px !important;
  border-color: var(--neutral-400) !important;
  color: var(--neutral-700) !important;
}

.ant-btn-default:hover {
  border-color: var(--medical-purple) !important;
  color: var(--medical-purple) !important;
}

/* 卡片悬停效果增强 */
.ant-card {
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) !important;
}

.ant-card:hover {
  box-shadow: var(--shadow-medium) !important;
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.ant-card-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 24px 32px !important;
}

.ant-card-body {
  padding: 32px !important;
}

/* 表格行悬停效果 */
.ant-table-tbody > tr:hover > td {
  background: rgba(102, 126, 234, 0.04) !important;
  transition: all 0.3s ease;
}

.ant-table {
  border-radius: 16px !important;
  overflow: hidden;
}

.ant-table-thead > tr > th {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
  font-weight: 600 !important;
  color: var(--neutral-700) !important;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1) !important;
}

/* 输入框焦点效果 */
.ant-input,
.ant-input-affix-wrapper {
  border-radius: 12px !important;
  border-color: var(--neutral-400) !important;
}

.ant-input:focus,
.ant-input-focused,
.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
  border-color: var(--medical-purple) !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* 标签动画 */
.ant-tag {
  transition: all 0.3s ease;
}

.ant-tag:hover {
  transform: scale(1.05);
}

/* 页面切换动画 */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 统计数字跳动效果 */
@keyframes countUp {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.ant-statistic-content-value {
  animation: countUp 0.6s ease-out;
}

/* 医疗十字图标 */
.medical-cross {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.medical-cross::before,
.medical-cross::after {
  content: '';
  position: absolute;
  background: var(--medical-primary);
}

.medical-cross::before {
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
}

.medical-cross::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 6px;
  transform: translateY(-50%);
}

/* 心跳动画 */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.medical-heartbeat {
  animation: heartbeat 2s ease-in-out infinite;
}

/* 上传区域悬停效果 */
.ant-upload-drag:hover {
  border-color: var(--medical-primary-light) !important;
  background: var(--medical-bg-light) !important;
  transform: scale(1.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 进度条动画 */
.ant-progress-line {
  animation: fadeIn 0.8s ease-out;
}

/* 侧边栏菜单项悬停光晕效果 */
.ant-menu-dark .ant-menu-item:hover,
.ant-menu-dark .ant-menu-submenu-title:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* 选中的菜单项脉冲效果 */
.ant-menu-dark .ant-menu-item-selected {
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  border-left: 4px solid #ffffff !important;
}

/* 徽章动画 */
.ant-badge {
  animation: fadeIn 0.5s ease-out;
}

.ant-badge-count {
  animation: pulse 2s ease-in-out infinite;
}

/* 表格头部样式 */
.ant-table-thead > tr > th {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
  .medical-card {
    border-radius: 8px;
  }
  
  .ant-card {
    margin-bottom: 16px;
  }
}

